from config import config
class Seo:
    @staticmethod
    def keyword(art):
        if art == None:
            return config["keyword"]
        if art.keyword ==None:
            return config["keyword"]
        if len(art.keyword) < 1:
            return config["keyword"]
        return art.keyword

    @staticmethod
    def desc(art):
        if art == None:
            return config["descword"]
        if art.desc == None:
            return config["descword"]
        if len(art.desc) < 1:
            return config["descword"]
        return art.desc
